<% content_for :menu do %>
<%= render :partial => "layouts/menu", :locals => {:incidennnnt => true} %>
<% end %>

<h1>New incident</h1>

<% form_for(@incident) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :date_detection %><br />
    <%= f.datetime_select :date_detection %>
  </p>
  <p>
    <%= f.label :machine_id %><br />
    <%= f.text_field :machine_id %>
  </p>
  <p>
    <%= f.label :type_incident_id %><br />
    <%= f.text_field :type_incident_id %>
  </p>
  <p>
    <%= f.label :date_resolution %><br />
    <%= f.datetime_select :date_resolution %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<span class="undo"><%= link_to 'Retour', incidents_path %></span>